package ${basepackage}.framework.query;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import ${basepackage}.framework.base.ColumnQuery;
import ${basepackage}.framework.base.page.BaseQuery;
import ${basepackage}.framework.base.util.Utils;


/**
 * @author Xi Wei
 * @version 1.0
 * @since 1.0
 */
 public class AuditLogQuery extends BaseQuery{
	
		private Long auditLogId;
	    private String action;
	    @DateTimeFormat(pattern="dd/MM/yyyy")
	    private Date createdDateFrom;
	    @DateTimeFormat(pattern="dd/MM/yyyy")
	    private Date createdDateTo;
	    private String entityName;

	    public AuditLogQuery() {
	    }



		public Long getAuditLogId() {
			return auditLogId;
		}



		public void setAuditLogId(Long auditLogId) {
			this.auditLogId = auditLogId;
		}



		@ColumnQuery
		public String getAction() {
			return action;
		}

		public void setAction(String action) {
			this.action = action;
		}



		@ColumnQuery
		public String getEntityName() {
			return entityName;
		}

		public void setEntityName(String entityName) {
			this.entityName = entityName;
		}



		@ColumnQuery(name="createdDate",operator=">")
		public Date getCreatedDateFrom() {
			return createdDateFrom;
		}



		public void setCreatedDateFrom(Date createdDateFrom) {
			this.createdDateFrom = createdDateFrom;
		}



		@ColumnQuery(name="createdDate",operator="<")
		public Date getCreatedDateTo() {
			return createdDateTo;
		}



		public void setCreatedDateTo(Date createdDateTo) {
			this.createdDateTo = createdDateTo;
		}

	    @Override
	    public String toString() {
	    // TODO Auto-generated method stub
	    return Utils.printObject(this);
	    }
	    
	    

}
